home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000323_news@columbia.edu _Fri Feb 28 11:14:32 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA02163
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 28 Feb 1997 11:14:31 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA13967
  7.     for kermit.misc@watsun; Fri, 28 Feb 1997 11:14:30 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: It's possible receive files in background?
  12. Date: 28 Feb 1997 16:14:28 GMT
  13. Organization: Columbia University
  14. Lines: 42
  15. Message-ID: <5f7094$hc4$1@apakabar.cc.columbia.edu>
  16. References: <3316318D.7978@mics.msu.su>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:6662
  19.  
  20. In article <3316318D.7978@mics.msu.su>,
  21. Andrew A. Ivanov <ivanov@mics.msu.su> wrote:
  22. : I'm using C-Kermit 5A(190) for HP-UX 10.0
  23. : I have serial connection between our HP workstation
  24. : and Panasonic modular switching system, it is sending some data
  25. : over serial cable.
  26. : What I need: _background_ task to receive this data and append them
  27. : to an appropriate file. That's all.
  28. : I've already tried many times kermit and cu, they works fine in
  29. : foreground, but in background they stucks.
  30. :
  31. Probably C-Kermit is getting stuck because it wants to print a message
  32. to stdout.  If you start it with the -q option, it will be "quiet".
  33.  
  34. Now, let's assume there is a maximum amount of time that you want to 
  35. capture the data (let's say, 600 seconds), and there is a marker to show
  36. the end of the data (let's say it's "End of Data").
  37.  
  38. Now suppose you have a C-Kermit script file called capture.ksc, containing
  39. (for example):
  40.  
  41.   set line /dev/tty01
  42.   set speed 19200
  43.   set flow rts/cts
  44.   log session panasonic.log
  45.   input 600 End of Data
  46.   close session
  47.   exit
  48.  
  49. Start C-Kermit like this:
  50.  
  51.   kermit panasonic.log -q &
  52.  
  53. In case any messages are still leaking out, then do it like this:
  54.  
  55.   kermit panasonic.log -q > /dev/null &
  56.  
  57. By the way, the current version of C-Kermit is 6.0:
  58.  
  59.   http://www.columbia.edu/kermit/ck60.html
  60.  
  61. - Frank